package com.qfedu.pojo;

import java.math.BigDecimal;

public class Product {
    /*CREATE TABLE bank_products(
	pid INT , #产品id
	pname VARCHAR(100), #产品名
	prate DOUBLE(10,2), #收益率
	limitDate INT,   #期限
	price DECIMAL(10,2),	#产品单价
	trend VARCHAR(100),	#走势
	beginPrice INT, #首笔起点金额
	upPrice INT #递增
);*/
    private int pid;
    private String pname;
    private double prate;
    private int limitDate;
    private BigDecimal price;
    private String trend;
    private int beginPrice;
    private int upPrice;

    public Product() {
    }

    public Product(int pid, String pname, double prate, int limitDate, BigDecimal price, String trend, int beginPrice, int upPrice) {
        this.pid = pid;
        this.pname = pname;
        this.prate = prate;
        this.limitDate = limitDate;
        this.price = price;
        this.trend = trend;
        this.beginPrice = beginPrice;
        this.upPrice = upPrice;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public double getPrate() {
        return prate;
    }

    public void setPrate(double prate) {
        this.prate = prate;
    }

    public int getLimitDate() {
        return limitDate;
    }

    public void setLimitDate(int limitDate) {
        this.limitDate = limitDate;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getTrend() {
        return trend;
    }

    public void setTrend(String trend) {
        this.trend = trend;
    }

    public int getBeginPrice() {
        return beginPrice;
    }

    public void setBeginPrice(int beginPrice) {
        this.beginPrice = beginPrice;
    }

    public int getUpPrice() {
        return upPrice;
    }

    public void setUpPrice(int upPrice) {
        this.upPrice = upPrice;
    }

    @Override
    public String toString() {
        return "Product{" +
                "pid=" + pid +
                ", pname='" + pname + '\'' +
                ", prate=" + prate +
                ", limitDate=" + limitDate +
                ", price=" + price +
                ", trend='" + trend + '\'' +
                ", beginPrice=" + beginPrice +
                ", upPrice=" + upPrice +
                '}';
    }
}
